import request from '@/utils/request'

// 查询养殖桶列表
export function listSysTanks(query) {
  return request({
    url: '/SysTanks/SysTanks/list',
    method: 'get',
    params: query
  })
}

// 查询养殖桶详细
export function getSysTanks(id) {
  return request({
    url: '/SysTanks/SysTanks/' + id,
    method: 'get'
  })
}

// 新增养殖桶
export function addSysTanks(data) {
  return request({
    url: '/SysTanks/SysTanks',
    method: 'post',
    data: data
  })
}

// 修改养殖桶
export function updateSysTanks(data) {
  return request({
    url: '/SysTanks/SysTanks',
    method: 'put',
    data: data
  })
}

// 删除养殖桶
export function delSysTanks(id) {
  return request({
    url: '/SysTanks/SysTanks/' + id,
    method: 'delete'
  })
}
